package com.derbysoft.dswitch.adapter.ihg.exception;

public class NoAllotmentException extends BusinessException {
    private static final String ERROR_CODE = "NoAllotment";

    public NoAllotmentException(String ratePlanCode, String roomTypeCode, int numberOfUnits) {
        super(
                String.format("No allotment for ratePlanCode:[%s] , roomTypeCode:[%s] numberOfUnits:[%d]",
                        ratePlanCode,
                        roomTypeCode,
                        numberOfUnits),
                ERROR_CODE);
    }
}
